﻿
if (typeof module !== 'undefined' && module.exports) {
    var zbus = require("../../zbus.js"); 
    ClientBootstrap = zbus.ClientBootstrap; 
}   
 
var b = new ClientBootstrap();  
b.serviceAddress("localhost:15555");
 //.serviceToken("myrpc_service")  

var rpc = b.invoker();
rpc.module = 'InterfaceExample';

rpc.plus(1,2).then(res=>{
    console.log(res);
}); 

rpc.testEncoding().then(res=>{
    console.log(res);
}); 